
all:server client
server:protobuf_server.cpp request.pb.cc /home/zhong/muduo/examples/protobuf/codec/codec.cc
	g++ -o $@ $^ -std=c++14 -lmuduo_net -lmuduo_base -lprotobuf -lz
client:protobuf_client.cpp request.pb.cc /home/zhong/muduo/examples/protobuf/codec/codec.cc
	g++ -o $@ $^ -std=c++14 -lmuduo_net -lmuduo_base -lprotobuf -lz
.PHONY:clean
clean:
	rm -f server client